import React from 'react'
import styles from './css/Mylist.module.css'
import { useNavigate } from 'react-router-dom'
const Mylist = (props) => {
    const nav=useNavigate()
  return (
    <div className={styles.a} onClick={()=>nav(`/xq:id?id=${props.id}`)}>
        <span>{props.content}</span>
        <span>{props.createdAt}</span>
        <span>{props.title}</span>
        <span>{props.updatedAt}</span>
    </div>
  )
}

export default Mylist
